<?php

  
require_once FRAMEWORK_DIR."/libraries/neocasta/logger.php";

class LoggerTestCaseOutput extends UnitTestCase {

function setUp(){

	$this->filename=dirname(__FILE__)."/testlogger.log";
	$this->filename2=dirname(__FILE__)."/тест.log";

}
function testLoggerInstance() {
	
	
        $this->assertReference(NLogger::getInstance($this->filename), NLogger::getInstance($this->filename), "%s -> Pass");
 	$this->assertReference(NLogger::getInstance($this->filename2), NLogger::getInstance($this->filename2), "%s -> Pass");
            
        }

function testLoggerCommon() {
	
	 @unlink($this->filename);
  	$this->assertFalse(file_exists($this->filename));

	   $oLogger = NLogger::getInstance($this->filename);

	$oLogger->log("test");	
  	$this->assertTrue(file_exists($this->filename));
	 
        }

}


?>